package com.xuerhua.yxt.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xuerhua.yxt.dao.NoticeSendeeRecordMapper;
import com.xuerhua.yxt.model.NoticeSendeeRecord;
import com.xuerhua.yxt.service.INoticeSendeeService;

@Service("noticeSendeeService")
public class NoticeSendeeServiceImpl implements INoticeSendeeService {

	@Autowired
	private NoticeSendeeRecordMapper noticeSendeeRecordMapper;
	@Override
	public int insertSelective(NoticeSendeeRecord record) {
		return noticeSendeeRecordMapper.insertSelective(record);
	}

	@Override
	public NoticeSendeeRecord selectByPrimaryKey(Long id) {
		return noticeSendeeRecordMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(NoticeSendeeRecord record) {
		return noticeSendeeRecordMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateRead(Integer sendeeId, List<Integer> noticeIds) {
		return noticeSendeeRecordMapper.updateRead(sendeeId, noticeIds);
	}

	@Override
	public List<NoticeSendeeRecord> selectListByNoticeId(Integer noticeId) {
		return noticeSendeeRecordMapper.selectListByNoticeId(noticeId);
	}

	@Override
	public List<NoticeSendeeRecord> selectListForParentByNoticeId(Integer noticeId) {
		return noticeSendeeRecordMapper.selectListForParentByNoticeId(noticeId);
	}

}
